/**
 * Created by Yamazhiki on 14/01/2017.
 */
/**
 * 平台类型
 */
import { SocketHelper } from "./SocketHelper";
export var PlatfromType;
(function (PlatfromType) {
    PlatfromType[PlatfromType["PlatfromType_None"] = 0] = "PlatfromType_None";
    PlatfromType[PlatfromType["PlatfromType_Live"] = 1] = "PlatfromType_Live";
})(PlatfromType || (PlatfromType = {}));
/**
 * 获取网关命令
 */
export var GatewayType;
(function (GatewayType) {
    GatewayType[GatewayType["Gateway_None"] = 0] = "Gateway_None";
    GatewayType[GatewayType["Gateway_GetFrontend"] = 1] = "Gateway_GetFrontend";
    GatewayType[GatewayType["Gateway_Count"] = 2] = "Gateway_Count";
})(GatewayType || (GatewayType = {}));
class IFrontendVo {
}
export class Tcm_Gateway_GetFrontend {
    constructor(obj) {
        this.uid = obj.uid;
    }
    toBuffer() {
        let buffer = Buffer.allocUnsafeSlow(8);
        let helper = new SocketHelper();
        helper.putUInt64(buffer, this.uid);
        return buffer;
    }
}
export class Tsm_Gateway_GetFrontend {
    constructor(buffer) {
        let vo = {};
        let parse = new SocketHelper();
        vo.ip = parse.getString(buffer, 17);
        vo.port = parse.getUInt(buffer);
        vo.dbId = parse.getInt(buffer);
        vo.srvId = parse.getInt(buffer);
        vo.lineId = parse.getInt(buffer);
        vo.status = parse.getInt(buffer);
        vo.userCount = parse.getInt(buffer);
        this.fVo = vo;
    }
}
